
/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
 * This source file is part of the Cangjie project, licensed under Apache-2.0 
 * with Runtime Library Exception.
 *
 * See https://cangjie-lang.cn/pages/LICENSE for license information.
 */

#include <crypt_eal_pkey.h>

#include <stdbool.h>
#include <string.h>

int32_t CRYPT_EAL_PkeySetPub_ECC(CRYPT_EAL_PkeyCtx *pkey, const CRYPT_EAL_PkeyPub *key) {

    return CRYPT_EAL_PkeySetPub(pkey,key);

}

int32_t CRYPT_EAL_PkeySetPub_RSA(CRYPT_EAL_PkeyCtx *pkey, const CRYPT_EAL_PkeyPub *key) {
    return CRYPT_EAL_PkeySetPub(pkey,key);
}

int32_t CRYPT_EAL_PkeyGetPub_ECC(const CRYPT_EAL_PkeyCtx *pkey, CRYPT_EAL_PkeyPub *key){
    return CRYPT_EAL_PkeyGetPub(pkey, key);
}

int32_t CRYPT_EAL_PkeyGetPub_RSA(const CRYPT_EAL_PkeyCtx *pkey, CRYPT_EAL_PkeyPub *key){
    return CRYPT_EAL_PkeyGetPub(pkey, key);
}


int32_t CRYPT_EAL_PkeySetPrv_ECC(CRYPT_EAL_PkeyCtx *pkey, const CRYPT_EAL_PkeyPrv *key){
    return CRYPT_EAL_PkeySetPrv(pkey, key);

}

int32_t CRYPT_EAL_PkeySetPrv_RSA(CRYPT_EAL_PkeyCtx *pkey, const CRYPT_EAL_PkeyPrv *key){
    return CRYPT_EAL_PkeySetPrv(pkey, key);

}

int32_t CRYPT_EAL_PkeyGetPrv_ECC(const CRYPT_EAL_PkeyCtx *pkey, CRYPT_EAL_PkeyPrv *key){

    return CRYPT_EAL_PkeyGetPrv(pkey, key);
}

int32_t CRYPT_EAL_PkeyGetPrv_RSA(const CRYPT_EAL_PkeyCtx *pkey, CRYPT_EAL_PkeyPrv *key){

    return CRYPT_EAL_PkeyGetPrv(pkey, key);
}